xend: Fix wait-for-stubdom loop to avoid possible infinite loop
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Jan 2010 10:14:17 +0000 (10:14 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Jan 2010 10:14:17 +0000 (10:14 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xend/image.py

index db6e6658f64c3fc9d6c4eca132cd94ed8b642a2b..778c0687e640ed67eb42d2ebc58969e0e0055823 100644 (file)
@@ -487,8 +487,8 @@ class ImageHandler:
 
                 time.sleep(0.1)
                 count += 1
-                if count < 100:
-                    continue
+                if count > 100:
+                    break
 
             domains.domains_lock.acquire()